package com.zcx.common;

import java.io.Serializable;
import java.util.List;
import java.util.Objects;

public class StudentBean implements Serializable {

    private String name;
    private String teacher;
    private int age;
    private String ban;
    private int scout;
    private String kemu;
    private List<StudentBean> studentBeanList;

    public StudentBean(String name, String teacher, int age, String ban, int scout, String kemu) {
        this.name = name;
        this.teacher = teacher;
        this.age = age;
        this.ban = ban;
        this.scout = scout;
        this.kemu = kemu;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTeacher() {
        return teacher;
    }

    public void setTeacher(String teacher) {
        this.teacher = teacher;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getBan() {
        return ban;
    }

    public void setBan(String ban) {
        this.ban = ban;
    }

    public int getScout() {
        return scout;
    }

    public void setScout(int scout) {
        this.scout = scout;
    }

    public String getKemu() {
        return kemu;
    }

    public void setKemu(String kemu) {
        this.kemu = kemu;
    }

    public List<StudentBean> getStudentBeanList() {
        return studentBeanList;
    }

    public void setStudentBeanList(List<StudentBean> studentBeanList) {
        this.studentBeanList = studentBeanList;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        StudentBean that = (StudentBean) o;
        return age == that.age &&
                scout == that.scout &&
                Objects.equals(name, that.name) &&
                Objects.equals(teacher, that.teacher) &&
                Objects.equals(ban, that.ban) &&
                Objects.equals(kemu, that.kemu);
    }

    @Override
    public int hashCode() {
        return Objects.hash(name, teacher, age, ban, scout, kemu);
    }

    @Override
    public String toString() {
        return "StudentBean{" +
                "name='" + name + '\'' +
                ", teacher='" + teacher + '\'' +
                ", age=" + age +
                ", ban='" + ban + '\'' +
                ", scout=" + scout +
                ", kemu='" + kemu + '\'' +
                '}';
    }
}
